package com.chwn.harulib.mvp;

import android.content.Context;

import com.chwn.harulib.mvp.rx.RxManager;

/**
 * Created by Myshikin on 2017/3/14.
 */

public abstract class BasePresenter<V extends BaseView> {
    public Context context;
    public V       mView;
    public RxManager mRxManager = new RxManager();

    public void setV(V v) {
        this.mView = v;
    }


    public void onDestroy() {
        mRxManager.clear();
    }

//    private Subscriber<T> mSubscriber ;

//    public abstract void getApi();
}
